<?php
/* 	These code was generated using phpCIGen v 0.1.b (24/06/2009)
	#zaqi 		zaqi.smart@gmail.com,http://zenzaqi.blogspot.com, 
	#CV. Trust Solution, jl. Saronojiwo 19 Surabaya, http://www.ts.co.id
	
	+ Module  		: t_bbmrec Print
	+ Description	: For Print View
	+ Filename 		: p_t_bbmrec.php
 	+ Author  		: 
 	+ Created on 07/Jun/2011 11:52:07
	
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>T Bbmrec List</title>
<link rel='stylesheet' type='text/css' href='../assets/modules/main/css/printstyle_nocolor.css'/>
</head>
<body>
<table width="100%" border="0">
  <tr>
    <td colspan="4"><table width="100%" border="0">
      <tr>
        <td width="12%"><img src="./assets/images/logo.jpg" alt="pertamax gan" width="79" height="73" /></td>
        <td width="3%">&nbsp;</td>
        <td width="73%" valign="top" class="clear info_spbu"><?php echo @$header->spbu_code."<br/>".@$header->spbu_name."<br/>".@$header->spbu_address."<br/>".@$header->spbu_city_name; ?></td>
        <td width="12%" align="right" valign="top"><img src="./assets/images/pasti_pas.jpg" alt="pasti pas gan" width="87" height="69" /></td>
      </tr>
    </table></td>
  </tr>
  <tr >
    <td height="38" colspan="4"><strong>Laporan Pelanggan</strong></td>
  </tr>
  <tr >
  	<td height="38" colspan="4"><strong><?php echo $startdate;?> s/d <?php echo $enddate;?></strong></td>
  </tr>
</table>
<table width="100%" cellpadding="2" cellspacing="0">
	<thead>
		<tr style="font-weight: bold;">
			<td style="border-bottom:medium solid black; border-top:medium solid black" align="center">Nama Perusahaan</td>
			<td style="border-bottom:medium solid black; border-top:medium solid black" align="center">Liter</td>
			<td style="border-bottom:medium solid black; border-top:medium solid black" align="center">Rupiah</td>
			<td style="border-bottom:medium solid black; border-top:medium solid black" align="center">Premium</td>
			<td style="border-bottom:medium solid black; border-top:medium solid black" align="center">Pertamax</td>
			<td style="border-bottom:medium solid black; border-top:medium solid black" align="center">Solar</td>
			<td style="border-bottom:medium solid black; border-top:medium solid black" align="center">PertamaxPlus</td>
			<td style="border-bottom:medium solid black; border-top:medium solid black" align="center">BioSolar</td>
			<td style="border-bottom:medium solid black; border-top:medium solid black" align="center">DEX</td>
		</tr>
	</thead>
	<tbody style="background:#E8EDFF">
		<?php 
		$product_name = array();
		$product_name_i = 0;
		
		$pump_id = 0;
		$i=0; 
		foreach($data_print as $print) {
			$i++;
		?>
		<tr>
			<td style="border-bottom:thin solid black;"><?php echo $print->customer_name; ?></td>
			<td style="border-bottom:thin solid black;" align="right"><?php echo number_format($print->total_liter, 2, ',', '.'); ?></td>
			<td style="border-bottom:thin solid black;" align="right"><?php echo number_format($print->total_rupiah, 2, ',', '.'); ?></td>
			<td style="border-bottom:thin solid black;" align="right"><?php echo number_format($print->premium, 2, ',', '.'); ?></td>
			<td style="border-bottom:thin solid black;" align="right"><?php echo number_format($print->pertamax, 2, ',', '.'); ?></td>
			<td style="border-bottom:thin solid black;" align="right"><?php echo number_format($print->solar, 2, ',', '.'); ?></td>
			<td style="border-bottom:thin solid black;" align="right"><?php echo number_format($print->pertamax_plus, 2, ',', '.'); ?></td>
			<td style="border-bottom:thin solid black;" align="right"><?php echo number_format($print->bio_solar, 2, ',', '.'); ?></td>
			<td style="border-bottom:thin solid black;" align="right"><?php echo number_format($print->dex, 2, ',', '.'); ?></td>
		</tr>
		<?php 
		}
		?>
	</tbody>
</table>
</body>
</html>